//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
double f1(double x, double a, double b, double c);
double f2(double x, double a, double b, double c);
double f3(double x, double a, double b);


class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TImage *Image;
        TListBox *ListBox;
        TPanel *Panel1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TEdit *Edit_a;
        TEdit *Edit_b;
        TEdit *Edit_c;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label6;
        TEdit *EditA;
        TEdit *EditB;
        TButton *ButtonDraw;
        TEdit *EditHeight;
        TEdit *EditBorder;
        TEdit *EditWidth;
        void __fastcall ButtonDrawClick(TObject *Sender);
        void __fastcall Edit_aClick(TObject *Sender);
        void __fastcall Edit_bClick(TObject *Sender);
        void __fastcall Edit_cClick(TObject *Sender);
        void __fastcall EditAClick(TObject *Sender);
        void __fastcall EditBClick(TObject *Sender);
        void __fastcall EditHeightClick(TObject *Sender);
        void __fastcall EditWidthClick(TObject *Sender);
        void __fastcall EditBorderClick(TObject *Sender);
private:	// User declarations
Graphics::TBitmap *bitmap;
  double *tab;
  int rozm;
  void minMax(double *t, int size, double &min, double &max);
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
